package cn.w.outdoor.lib.media;

import android.media.AudioFormat;
import android.media.AudioManager;
import android.media.AudioTrack;
import android.media.MediaRecorder;

public class MediaConfig {

//    public static final int PCM_AUDIO_SAMPLERATE = 8000;
    public static final int PCM_AUDIO_SAMPLERATE = 44100;
    public static final int AUDIO_OUT_CHANNEL = AudioFormat.CHANNEL_OUT_MONO;
    public static final int AUDIO_IN_CHANNEL = AudioFormat.CHANNEL_IN_MONO;
    public static final int AUDIO_FORMAT = AudioFormat.ENCODING_PCM_16BIT;
    public static final int AUDIO_SOURCE = MediaRecorder.AudioSource.MIC;
    public static final int AUDIO_MODE = AudioTrack.MODE_STREAM;
    public static final int AUDIO_STREAMTYPE = AudioManager.STREAM_MUSIC;

    public static final int VIDEOWIDTH = 640;
    public static final int VIDEOHEIGHT = 480;

    public static final int VIDEO_BITRATE = 1500000;
    public static final int VIDEO_IFRAMEINTERVAL = 1;
    public static final int VIDEO_FRAMERATE = 25;
    public static final String VIDEO_MIME_TYPE = "video/avc";

}
